package com.kayak.tg.client.controller;

import com.kayak.distribute.bean.UserAddress;
import com.kayak.distribute.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ClassName OrderController
 * @Dsecriptio
 */
@Controller
public class OrderController {

	@Autowired
	private IOrderService orderService;

	@ResponseBody
	@RequestMapping("/initOrder")
	public List<UserAddress> initOrder(@RequestParam("uid")String userId) {
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>" + 1231231);
		return orderService.initOrder(userId);
		// return null;
	}
}
